import React from 'react';
import { useSelector } from 'react-redux';
const Index = () => {
  const { avatar, nickname } = useSelector(state => state.user.userInfo)
  return (
    <div>
      <img src={avatar} alt="" height={100}/>
      <span>{ nickname }</span>
    </div>
  )
}

export default Index